package com.tansuo365.test1.service.kucunservice.kucunimpl;

import com.tansuo365.test1.bean.kucunbean.DaohuoDetails;
import com.tansuo365.test1.mapper.kucunmapper.DaohuoDetailsMapper;
import com.tansuo365.test1.service.kucunservice.DaohuoDetailsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DaohuoDetailsServiceImpl implements DaohuoDetailsService {

    @Resource
    private DaohuoDetailsMapper daohuoDetailsMapper;

    @Override
    public List<DaohuoDetails> listDaohuoDetailsByZongId(Integer zongzhangid) {
        return daohuoDetailsMapper.listDaohuoDetailsByZongId(zongzhangid);
    }

    @Override
    public List<DaohuoDetails> listDaohuoDetailsSelective(DaohuoDetails daohuoDetails) {
        return daohuoDetailsMapper.listDaohuoDetailsSelective(daohuoDetails);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return daohuoDetailsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteByZongId(Integer zongzhangid) {
        return daohuoDetailsMapper.deleteByZongId(zongzhangid);
    }

    @Override
    public int deleteByZongIdArr(Integer[] ids) {
        return daohuoDetailsMapper.deleteByZongIdArr(ids);
    }

    @Override
    public int insertSelective(DaohuoDetails daohuoDetails) {
        return daohuoDetailsMapper.insertSelective(daohuoDetails);
    }

    @Override
    public DaohuoDetails selectByPrimaryKey(Integer id) {
        return daohuoDetailsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(DaohuoDetails daohuoDetails) {
        return daohuoDetailsMapper.updateByPrimaryKeySelective(daohuoDetails);
    }

    @Override
    public List<String> listDuiyingShengouDan(Integer[] ids) {
        return daohuoDetailsMapper.listDuiyingShengouDan(ids);
    }

    @Override
    public List<DaohuoDetails> listByDuiyingShengoudans(List<String> duiyingshengoudanList) {
        return daohuoDetailsMapper.listByDuiyingShengoudans(duiyingshengoudanList);
    }
}
